//获取积分首页
export const myIntegral = `
query($score:Int,$page:Int,$order:String){ 
  score_goods_list(score:$score,page:$page,order:$order){
    total
	lastpage
	list{
		id
		goods_id
		name
		image
		subtitle
		dispatch_type
		score
	}
  }
}`;
//获取积分商品详情
export const orderDetail = `
query($id:Int){ 
  score_goods_info(id:$id){
    id
	name
	store_id
	images
	image
	subtitle
	content
	dispatch_type
	score
  }
}`;
// 获取积分订单类型
export const integralS = `
query{
  score_type{
   name
   type
  }
}`;
// 我的积分信息
export const getDriverInfo = `
query($driver_id:Int){ 
    getDriverInfo(driver_id:$driver_id){
		driver_id
        score
  }
}`;
// 积分商品列表
export const getGoodsList = `
query($goods_type:Int,$page:Int){ 
getGoodsList(goods_type:$goods_type,page:$page){
	list{
		id
		name
		image
		score
		stock
	}
	total
	lastpage
  }
}`;
// 商品详情
export const getGoodsInfo = `
query($id:Int){ 
	getGoodsInfo(id:$id){
		id
		name
		image
		score
		stock
  }
}`;
// 我的商品
export const myGoodsList = `
query($driver_id:Int,$page:Int,$status:Int){ 
  myGoodsList(driver_id:$driver_id,page:$page,status:$status){
    list{
      id
      goods_id
      name
      image
      score
      stock
      status
      status_name
      order_id
      delivery_type
      expirytime
      store_address
      store_name
      type  
      price
    }
    total
    lastpage
  }
}`;
// 商品详情
export const getDuihuanLog = `
query($order_id:Int){ 
	getDuihuanLog(order_id:$order_id){
		id
    goods_id
    name
    image
    score
    stock
    delivery_type
    staff_name
    updatetime
    nums
    order_score
    store_address
    store_mobile
    store_name
    expirytime
    order_sn
  }
}`;
// 我的商品
export const getDuihuanLogList = `
query($driver_id:Int,$page:Int,$start:String,$end:String,$status:Int){ 
  getDuihuanLogList(driver_id:$driver_id,page:$page,start:$start,end:$end,status:$status){
    list{
      id
      order_sn
      store_address
      store_name
      store_mobile
      updatetime
      createtime
      order_score
      order_money
      delivery_type
      staff_name
      nums
	  code_image
	  status
	  status_text
      goods_list{
          goods_id
          name
          image
          score
          money
          expirytime
          type
          nums
      }
	  store_info{
		  code
		  store_address
		  store_name
		  longitude
		  latitude
		  phone
		  expirytime
	  }
    }
    total
    lastpage
  }
}`;